﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QQ.AbstractFactory
{
    class WindowsSkin : ISkin
    {
        private IWindow _window;
        private IButton _button;
        private IText _text;
        public WindowsSkin()
        {
            _window = new WindowsWindow();
            _button = new WindowsButton();
            _text = new WindowsText();
        }
        public IWindow GetWindow()
        {
            return _window;
        }

        public IButton GetButton()
        {
            return _button;
        }

        public IText GetText()
        {
            return _text;
        }

        public void ShowAll()
        {
            _window.Show();
            _button.Show();
            _text.Show();
        }
    }
}
